package com.monochromebytes.mononet.packet;

/**
 * Interface of an Inbox that stores incoming packets.
 * 
 * It's up to the implementation if the Inbox accepts the received packets and
 * in which order they will be returned.
 * 
 * @author ted
 */
public interface Inbox {

    /**
     * The Inbox receives the given packet.
     * 
     * It's up to its implementation if it accepts and how it stores the packet.
     * 
     * @param packet
     *            The received packet.
     */
    public void receive(IncomingPacket packet);
}
